package com.lumingfeng.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by yc on 16/9/3.
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    public ModelAndView index(){

        ModelAndView view =new ModelAndView("index");
        return view;
    }

    @RequestMapping(name = "/page")
    public ModelAndView jump(String url) {
        ModelAndView view = new ModelAndView(url);
        return view;
    }
}
